package com.icodingedu.springcloud;

import com.icodingedu.springcloud.topic.GroupProducer;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.stream.annotation.EnableBinding;

@SpringBootApplication
@EnableBinding(value = {
        GroupProducer.class
})
public class StreamProducerApplication {

    public static void main(String[] args) {
        new SpringApplicationBuilder(StreamProducerApplication.class)
                .web(WebApplicationType.SERVLET)
                .run(args);
    }
}
